package util
{
	public class StringUtil
	{
		public function StringUtil()
		{
		}

		public static function toTitleCase( original:String ):String { 
			var c : int = original.charCodeAt(0);
			if( c > 96 && c < 123 ){
				original = original.charAt(0).toUpperCase() + original.substr(1);	
			}
			return original.replace( /([A-Z])/g, " $1" ).substr(1);
		} 

	}
}